{% extends "INTAdminBundle::layout.html.twig" %}
 {% block body %}
<link rel="stylesheet" href="/calendrier/default.css" type="text/css" media="screen"/>
<link rel="stylesheet" href="/calendrier/demo.css" type="text/css" media="screen"/>
<link rel="stylesheet" href="/calendrier/jquery-ui-1.8.11.custom.css" type="text/css" media="screen"/>
<link rel="stylesheet" href="/calendrier/jquery.weekcalendar.css" type="text/css" media="screen"/>
<link rel="stylesheet" href="/calendrier/reset.css" type="text/css" media="screen"/>
<script src="/calendrier/date.js"></script>
<script src="/calendrier/demo.js"></script>
<script src="/calendrier/jquery.weekcalendar.js"></script>
<script src="/calendrier/themeswitchertool.js"></script>
<div id="event_edit_container">
    qscqscqscsq
    <div id="form_filiere">

    </div>
    <div id="form_groupe"></div>
    <div id="form_enseignant"></div>
</div>
   
<div  class="form-grid" style="list-style: none;margin-top: 10px;">
    <form id="" class="leftLabel"  method="POST" class="fos_user_registration_register">
  <ul>
    <li>
        {#<label class="fldTitle"><h4>Filiere</h4></label>#}
    <div class="fieldwrap">
        <span class="fldcol left">
            <select id="list_type" >
                <option>...</option>
                <option value="Filiere">Filiere</option>
                <option value="Groupe">Groupe</option>
                <option value="Enseignant">Enseignant</option>
            </select>
        </span>
        <div id="filiere_choise"></div>
    </div>
    </li>
  </ul>
    </form>
</div>

<div id='show_emploi'></div>
<script>
    var shortDays=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];
  
    $(document).ready(function() {
        $('#list_type').change(function() {
            if ($(this).val() == 'Filiere') {
                $('#form_groupe').hide()
                $('#form_enseignant').hide()
                $('#form_filiere').show()
                $.ajax({
                    url: '{{path('new_seance_filiere')}}',
                    success: function(data) {
                        $('#form_filiere').html(data)
                    }

                })
            }
            $.ajax({
                url: '{{path('get_list_choix')}}',
                data: 'type=' + $(this).val(),
                success: function(data) {
                    $('#filiere_choise').html(data)
                }

            })
        })
        })
       
    </script>
{% endblock %}
